package com.lanou3g;

public class Man extends Person{
	// 姓名，姓名，年龄（继承自父类）
	// 男人的妻子类型是女人，名字是wife
	private Woman wife;
	private Child son;
	
	public Man() {
	}
	public Man(String name, int age, String sex) {
		super(name, age, sex);
	}
	public Woman getWife() {
		return wife;
	}
	public void setWife(Woman wife) {
		this.wife = wife;
	}
	public Child getSon() {
		return son;
	}
	public void setSon(Child son) {
		this.son = son;
	}
	
	public void work(){
		System.out.println(this.getName() 
				+"努力工作为他的妻子"+wife.getName()
				+"和他的儿子"+son.getName()+"赚钱");
	}
	
}
